package com.hutao.manage.pojo;

import java.math.BigDecimal;

import com.hutao.manage.util.BigDecimalUtil;

public class OutpatientSex {
	
	private Integer manCount;
	
	private Integer womenCount;
	
	private Integer totalCount;
	
	private BigDecimal manRate;
	
	private BigDecimal womanRate;

	public Integer getManCount() {
		return manCount;
	}

	public void setManCount(Integer manCount) {
		this.manCount = manCount;
	}

	public Integer getWomenCount() {
		return womenCount;
	}

	public void setWomenCount(Integer womenCount) {
		this.womenCount = womenCount;
	}

	public Integer getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}

	
	
	public BigDecimal getManRate() {
		return manRate;
	}

	public void setManRate(BigDecimal manRate) {
		this.manRate = manRate;
	}

	public BigDecimal getWomanRate() {
		return womanRate;
	}

	public void setWomanRate(BigDecimal womanRate) {
		this.womanRate = womanRate;
	}

	public void init () {
		manRate = BigDecimalUtil.getDivideRate(new BigDecimal(manCount), new BigDecimal(totalCount));
		womanRate = BigDecimalUtil.getDivideRate(new BigDecimal(womenCount), new BigDecimal(totalCount));
	}
	

}
